using Core;

namespace g_gongjianta
{
    /// <summary>
    /// 怪物巢穴
    /// </summary>
    public class Lair : Unit, IAwake<TblDungeon.LairConf>
    {
        public TblDungeon.LairConf Conf { get; private set; }

        public LairMainComponent Main { get; private set; }

        public void Awake(TblDungeon.LairConf t)
        {
            base.Awake();

            Conf = t;

#if UNITY_EDITOR
            gameObject.name = $"Lair_{Conf.Id}_{InstanceId}";
#endif

            Main = Add<LairMainComponent>();
        }
    }
}